home *** CD-ROM | disk | FTP | other *** search
-
-
-
- * This is my very own icon library include file. I actually need
- * one at last! Like all of my include files, this one is Public
- * Domain. Feel free to use, mutate, have sex with etc.
-
-
- * Icon Library Functions
-
-
- GetWBObject equ -30 ;name=A0
- PutWBObject equ -36 ;name=A0,object=A1
- GetIcon equ -42 ;name=A0,icon=A1,freelist=A2
- PutIcon equ -48 ;name=A0,icon=A1
- FreeFreeList equ -54 ;freelist=A0
- FreeWBObject equ -60 ;WBObject=A0
- AllocWBObject equ -66 ;()
- AddFreeList equ -72 ;freelist=A0,mem=A1,size=A2
- GetDiskObject equ -78 ;name=A0
- PutDiskObject equ -84 ;name=A0,diskobject=A1
- FreeDiskObject equ -90 ;diskobject=A0
- FindToolType equ -96 ;tooltypearray=A0,typename=A1
- MatchToolType equ -102 ;typestring=A0,value=A1
- BumpRevision equ -108 ;newname=A0,oldname=A1
-
-
-
- WBDISK EQU 1 ;root of a disc
- WBDRAWER EQU 2 ;disc directory object
- WBTOOL EQU 3 ;executable program
- WBPROJECT EQU 4 ;data file created by above
- WBGARBAGE EQU 5 ;TrashCan directory
- WBDEVICE EQU 6 ;not documented! BAH!
- WBKICK EQU 7 ;Kickstart Disc
-
-
- * DrawerData structure definition
- * Needs Intuition include file for nw_sizeof
-
-
- rsreset
- dd_NewWindow rs.b nw_sizeof
- dd_CurrentX rs.l 1
- dd_CurrentY rs.l 1
-
- dd_sizeof rs.w 0
-
-
- * DiskObject structure definition
- * Needs Intuition include file for gg_sizeof
-
-
- rsreset
- do_Magic rs.w 1
- do_Version rs.w 1
- do_Gadget rs.b gg_sizeof
- do_Type rs.w 1
- do_DefaultTool rs.l 1
- do_ToolTypes rs.l 1
- do_CurrentX rs.l 1
- do_CurrentY rs.l 1
- do_DrawerData rs.l 1
- do_ToolWindow rs.l 1
- do_StackSize rs.l 1
-
- do_sizeof rs.w 0
-
-
- WB_DISKMAGIC EQU $E310
- WB_DISKVERSION EQU 1
- GADGBACKFILL EQU $0001
- NO_ICON_POSITION EQU ($80000000)
-
-
- * WBStartup message structure
-
-
- rsreset
- sm_Message rs.b mn_sizeof
- sm_Process rs.l 1
- sm_Segment rs.l 1
- sm_NumArgs rs.l 1
- sm_ToolWindow rs.l 1
- sm_ArgList rs.l 1
-
- sm_sizeof rs.w 0
-
-
- * WBArg structure
-
-
- rsreset
- wa_Lock rs.l 1
- wa_Name rs.l 1
-
- wa_sizeof rs.w 0
-
-
- * FreeList structure definition
- * Needs Exec include file for lh_sizeof
-
-
- rsreset
- fl_NumFree rs.w 1
- fl_MemList rs.b lh_sizeof
- FreeList_sizeof rs.w 0
-
-
- MTYPE_PSTD EQU 1
- MTYPE_TOOLEXIT EQU 2
- MTYPE_DISKCHANGE EQU 3
- MTYPE_TIMER EQU 4
- MTYPE_CLOSEDOWN EQU 5
- MTYPE_IOPROC EQU 6
-
-
- * Macro to call an Icon Library function
-
-
- CALLICON MACRO
- move.l a6,-(sp)
- move.l IconBase(a6),a6
- jsr \1(a6)
- move.l (sp)+,a6
- ENDM
-
-
- DRAWERDATAFILESIZE EQU (dd_sizeof)
-
-
-
-
-